﻿
using Bot.Domain.Enum;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Bot.Domain.SmartTriggers
{
    public class SmartTriggersDto : BaseDto
    {
        public SmartTriggersDto()
        {
        }
        
        [Required]
        
        public int SiteId { get; set; }   
        
        [Required]
        
        public Guid BotId { get; set; }   
        
        [Required]
        [MaxLength(128)]        
        public string Name { get; set; }   
        
        [Required]
        
        public bool IsEnabled { get; set; }   
        
        [Required]
        public EnumConditionWhen ConditionExpressionType { get; set; }   
        
        [Required]
        [MaxLength(2048)]        
        public string ConditionExpression { get; set; }

        public bool IsDeleted { get; set; }

    }
}
